package com.yj.CommandPattern;

public class GarageDoorOpenCommand implements Command{
	GarageDoor garageDoor;
	
	public GarageDoorOpenCommand(GarageDoor garageDoor){
		this.garageDoor=garageDoor;
	}
	
	
	@Override
	public void execute() {
		garageDoor.up();
		garageDoor.lightOn();
	}


	@Override
	public void undo() {
		garageDoor.down();
		garageDoor.lightOff();
	}
	
}
